import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';

import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { DetailPage } from '../pages/detail/detail';
import { CouponPage } from '../pages/coupon/coupon';

@NgModule({
  declarations: [
    MyApp,
    HomePage,
    DetailPage,
    CouponPage
  ],
  imports: [
    IonicModule.forRoot(MyApp, {}, {
      links:[
         { component: HomePage, name: 'Home', segment: 'home' },
         { component: DetailPage, name: 'Detail', segment: 'detail/:id' },
         { component: CouponPage, name: 'Coupon', segment: 'coupon' }
      ]
    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    DetailPage,
    CouponPage
  ],
  providers: []
})
export class AppModule { }
